package com.tmptSource.dto;

import java.io.Serializable;
import com.tmptSource.enums.*;

/**
 * Created by wxy on 2017/8/26.
 */
public class OwrDoubleTaskPairDto implements Serializable {

    private static final long serialVersionUID = 1L;

    //----------------------------------------
    // model
    //----------------------------------------
    private String id;
    private String companyId;
    private String owrRegionId;
    private String regionName;
    private String userId;
    private String entityId;
    private String userName;
    private String entityName;
    private String year;
    private String quarter;
    private String quarter_Str;
    private String month;
    private String owrType;
    private String owrTypeName;

    private String owTaskId;
    private String owTaskId_Str;
    private OwTaskDto owTaskDto;
    private String owTaskStatus;
    private String owTaskStatus_Str;
    private String improveRequied;
    private String dealIssueContent;
    private String dealResult;
    private String dealTime;

    private String deleteflag;
    private String createdate;

    public String getOwTaskId_Str() {
        if(this.owTaskId.equals("0")){
            this.owTaskId_Str = "未派发";
        }else{
            this.owTaskId_Str = "已经派发";
        }
        return owTaskId_Str;
    }

    private String createman;
    private String modifydate;
    private String modifyman;
    private String createmanId;
    private String modifymanId;
    private String taskStatusQ;

    public String getQuarter_Str() {
        quarter_Str = Quarter.explain(quarter,"");
        return quarter_Str;
    }

    public void setQuarter_Str(String quarter_Str) {
        this.quarter_Str = quarter_Str;
    }

    public String getTaskStatusQ() {
        return taskStatusQ;
    }

    public void setTaskStatusQ(String taskStatusQ) {
        this.taskStatusQ = taskStatusQ;
    }

    //----------------------------------------
    // 与页面交互时的参数
    //----------------------------------------
    private String createdate_Start;
    private String createdate_End;
    private String modifydate_Start;
    private String modifydate_End;

    //多选项Options，加_Str做数据显示
    private String userId_Str;
    private String entityId_Str;

    //=====================================================
    // setter getter method
    //=====================================================


    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append(id).append(" ");
        sb.append(regionName).append(" ");
        sb.append(userName).append(" ");
        sb.append(entityName).append(" ");
        return sb.toString();
    }

    public String getDealTime() {
        if(this.owTaskDto==null){
            this.dealTime = null;
        }else{
            this.dealTime = this.owTaskDto.getDealTime();
        }

        return dealTime;
    }

    public void setDealTime(String dealTime) {
        this.dealTime = dealTime;
    }

    public String getOwTaskStatus() {
        if(this.owTaskDto==null){
            this.owTaskStatus = null;
        }else{
            this.owTaskStatus = this.owTaskDto.getOwTaskStatus();
        }
        return owTaskStatus;
    }

    public void setOwTaskStatus(String owTaskStatus) {
        this.owTaskStatus = owTaskStatus;
    }

    public String getOwTaskStatus_Str() {
        if(this.owTaskDto==null){

            this.owTaskStatus_Str = null;
        }else{
            this.owTaskStatus_Str = this.owTaskDto.getOwTaskStatus_Str();
        }
        return owTaskStatus_Str;
    }

    public void setOwTaskStatus_Str(String owTaskStatus_Str) {
        this.owTaskStatus_Str = owTaskStatus_Str;
    }

    public String getImproveRequied() {
        if(this.owTaskDto==null){
            this.improveRequied = null;
        }else{
            this.improveRequied = this.owTaskDto.getImproveRequied();
        }
        return improveRequied;
    }

    public void setImproveRequied(String improveRequied) {
        this.improveRequied = improveRequied;
    }

    public String getDealIssueContent() {
        if(this.owTaskDto==null){
            this.dealIssueContent = null;
        }else{
            this.dealIssueContent = this.owTaskDto.getDealIssueContent();
        }

        return dealIssueContent;
    }

    public void setDealIssueContent(String dealIssueContent) {
        this.dealIssueContent = dealIssueContent;
    }

    public String getDealResult() {
        if(this.owTaskDto==null){
            this.dealResult = null;
        }else{
            this.dealResult = this.owTaskDto.getDealResult();
        }

        return dealResult;
    }

    public void setDealResult(String dealResult) {
        this.dealResult = dealResult;
    }

    public String getOwTaskId() {
        return owTaskId;
    }

    public void setOwTaskId(String owTaskId) {
        this.owTaskId = owTaskId;
    }

    public OwTaskDto getOwTaskDto() {
        return owTaskDto;
    }

    public void setOwTaskDto(OwTaskDto owTaskDto) {
        this.owTaskDto = owTaskDto;
    }

    public String getUserId_Str() {
        return userId_Str;
    }

    public void setUserId_Str(String userId_Str) {
        this.userId_Str = userId_Str;
    }

    public String getEntityId_Str() {
        return entityId_Str;
    }

    public void setEntityId_Str(String entityId_Str) {
        this.entityId_Str = entityId_Str;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getOwrType() {
        return owrType;
    }

    public void setOwrType(String owrType) {
        this.owrType = owrType;
    }

    public String getOwrTypeName() {
        return owrTypeName;
    }

    public void setOwrTypeName(String owrTypeName) {
        this.owrTypeName = owrTypeName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }
    public String getId(){
        return this.id;
    }
    public void setId(String id){
        this.id=id;
    }
    public String getDeleteflag(){
        return this.deleteflag;
    }
    public void setDeleteflag(String deleteflag){
        this.deleteflag=deleteflag;
    }
    public String getCreatedate(){
        return this.createdate;
    }
    public void setCreatedate(String createdate){
        this.createdate=createdate;
    }
    public String getCreateman(){
        return this.createman;
    }
    public void setCreateman(String createman){
        this.createman=createman;
    }
    public String getModifydate(){
        return this.modifydate;
    }
    public void setModifydate(String modifydate){
        this.modifydate=modifydate;
    }
    public String getModifyman(){
        return this.modifyman;
    }
    public void setModifyman(String modifyman){
        this.modifyman=modifyman;
    }
    public String getCreatemanId(){
        return this.createmanId;
    }
    public void setCreatemanId(String createmanId){
        this.createmanId=createmanId;
    }
    public String getModifymanId(){
        return this.modifymanId;
    }
    public void setModifymanId(String modifymanId){
        this.modifymanId=modifymanId;
    }
    public String getCompanyId(){
        return this.companyId;
    }
    public void setCompanyId(String companyId){
        this.companyId=companyId;
    }
    public String getOwrRegionId(){
        return this.owrRegionId;
    }
    public void setOwrRegionId(String owrRegionId){
        this.owrRegionId=owrRegionId;
    }
    public String getRegionName(){
        return this.regionName;
    }
    public void setRegionName(String regionName){
        this.regionName=regionName;
    }
    public String getQuarter(){
        return this.quarter;
    }
    public void setQuarter(String quarter){
        this.quarter=quarter;
    }
    public String getUserId(){
        return this.userId;
    }
    public void setUserId(String userId){
        this.userId=userId;
    }
    public String getEntityId(){
        return this.entityId;
    }
    public void setEntityId(String entityId){
        this.entityId=entityId;
    }

    public String getCreatedate_Start(){
        return createdate_Start;
    }
    public void setCreatedate_Start(String createdate_Start){
        this.createdate_Start = createdate_Start;
    }
    public String getCreatedate_End(){
        return createdate_End;
    }
    public void setCreatedate_End(String createdate_End){
        this.createdate_End = createdate_End;
    }
    public String getModifydate_Start(){
        return modifydate_Start;
    }
    public void setModifydate_Start(String modifydate_Start){
        this.modifydate_Start = modifydate_Start;
    }
    public String getModifydate_End(){
        return modifydate_End;
    }
    public void setModifydate_End(String modifydate_End){
        this.modifydate_End = modifydate_End;
    }


}
